﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace WiiRegionChanger
{
    class wiidiscdata
    {
        /*
        string filename;
        public string filenameF2TextBoxValue
        {
            get
            {
                return filename;
            }
            set
            {
                filename = value;
            }
        }

        public string GetDataAtOffset(string dataAtOffset)
        {
            string path = filename;
            string dataAtOffsetEnter;
            dataAtOffsetEnter = dataAtOffset;
            FileStream fs777 = new FileStream(@path, FileMode.Open, FileAccess.Read);
            long offset105 = fs777.Seek(dataAtOffsetEnter, SeekOrigin.Begin);   

            //x = 0;

        }*/

        public string GetMakerCode(string mcComplete)
        {
            string gmcString, mcString;

            gmcString = mcComplete;

            if (gmcString == "01")
            {
                mcString = "Nintendo";
            }
            else if (gmcString == "08")
            {
                mcString = "Capcom";
            }
            else if (gmcString == "18")
            {
                mcString = "Hudson Soft";
            }
            else if (gmcString == "36")
            {
                mcString = "Codemasters";
            }
            else if (gmcString == "41")
            {
                mcString = "Ubisoft";
            }
            else if (gmcString == "4F")
            {
                mcString = "Eidos Interactive";
            }
            else if (gmcString == "4Q")
            {
                mcString = "Disney Interactive";
            }
            else if (gmcString == "51")
            {
                mcString = "Acclaim";
            }
            else if (gmcString == "52")
            {
                mcString = "Activision";
            }
            else if (gmcString == "5D")
            {
                mcString = "Midway";
            }
            else if (gmcString == "5G")
            {
                mcString = "Majesco Entertainment Company";
            }
            else if (gmcString == "64")
            {
                mcString = "LucasArts";
            }
            else if (gmcString == "69")
            {
                mcString = "Electronic Arts";
            }
            else if (gmcString == "6M")
            {
                mcString = "System 3";
            }
            else if (gmcString == "6S")
            {
                mcString = "TDK Interactive";
            }
            else if (gmcString == "78")
            {
                mcString = "THQ";
            }
            else if (gmcString == "7U")
            {
                mcString = "Ignition Entertainment";
            }
            else if (gmcString == "70")
            {
                mcString = "Atari";
            }
            else if (gmcString == "8P")
            {
                mcString = "SEGA";
            }
            else if (gmcString == "9B")
            {
                mcString = "Tecmo";
            }
            else if (gmcString == "A4")
            {
                mcString = "Mirage";
            }
            else if (gmcString == "AF")
            {
                mcString = "Namco";
            }
            else if (gmcString == "B2")
            {
                mcString = "Bandai";
            }
            else if (gmcString == "C0")
            {
                mcString = "Taito";
            }
            else if (gmcString == "DA")
            {
                mcString = "Tomy";
            }
            else if (gmcString == "EL")
            {
                mcString = "Spike";
            }
            else if (gmcString == "EM")
            {
                mcString = "Konami";
            }
            else if (gmcString == "GT")
            {
                mcString = "Majesco Games";
            }
            else if (gmcString == "GY")
            {
                mcString = "The Game Factory";
            }
            else if (gmcString == "H4")
            {
                mcString = "SNK Playmore";
            }
            else
            {
                //error handling
                mcString = "Unknown / Not Implemented Yet";
            }

            return mcString;
        }
    }
}
